package com.cimc.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cimc.dao.UserDao;
import com.cimc.entity.UserModel;
import com.cimc.service.UserService;

@Service("userService")
public class UserServiceImpl  implements UserService {

	@Resource(name ="userDao") 
	private UserDao userDao;
	
	
	@Transactional
	@Override
	public void save(UserModel user) {
		try{
			userDao.persist(user);
		}catch(Exception e){
			e.printStackTrace();
		}
	}

}
